//
//  UIBarButtonItem+Extension.h
//  ShinyOrder
//
//  Created by 王方伟 on 16/7/25.
//  Copyright © 2016年 ShinyHub. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (Extension)
/**
 *  快速创建一个显示图片的item
 *
 *  @param action   监听方法
 */
+ (UIBarButtonItem *)sh_itemWithIcon:(NSString *)icon highIcon:(NSString *)highIcon target:(id)target action:(SEL)action;

+ (UIBarButtonItem *)sh_itemWithIcon:(NSString *)icon highIcon:(NSString *)highIcon bageValue:(NSInteger)bageValue target:(id)target action:(SEL)action;

+ (UIBarButtonItem *)sh_itemWithTitle:(NSString *)title titleColor:(UIColor *)titleColor icon:(NSString *)icon highIcon:(NSString *)highIcon target:(id)target action:(SEL)action;
+ (UIBarButtonItem *)sh_itemWithTitle:(NSString *)title icon:(NSString *)icon highIcon:(NSString *)highIcon target:(id)target action:(SEL)action;

+ (UIBarButtonItem *)sh_itemWithTitle:(NSString *)title titleColor:(UIColor *)titleColor target:(id)target action:(SEL)action;
+ (UIBarButtonItem *)sh_itemWithTitle:(NSString *)title target:(id)target action:(SEL)action;

- (void)setBarButtonItemColor:(UIColor *)color;
- (void)setBarButtonItemTitle:(NSString *)title;
- (void)setBarButtonItemBageValue:(NSInteger)bageValue;
@end
